package chpt_04_lesson_01.builder;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Ping
 * @date 2023/3/15 16:29
 **/
@Component
public class MealWaiter {
    @Autowired
    private MealBuilder builder ;
    public Meal construct() {
        return builder.setDrinking()
                .setMainFood()
                .setSnack()
                .getMeal();
    }
}
